<template>
  <div class="login">
    <div class="form-wap">
      <!-- <a-form>
        <a-form-model-item>
          <label class="form-wap-label">用户名</label>
          <a-input type="text" placeholder="请输入用户名" />
        </a-form-model-item>
        <a-form-model-item>
          <label class="form-wap-label">密码</label>
          <a-input type="password" placeholder="请输入密码" />
        </a-form-model-item>
      
        <a-form-model-item>
          <Captch @onBack="oncack"></Captch>
          
        </a-form-model-item>
        <a-form-model-item>
          <a-button type="primary" block @click="usss()"> 登录 </a-button>
        </a-form-model-item>
      </a-form> -->
      <div class="passwordnew">
        <a>忘记密码</a>&nbsp;&nbsp;|&nbsp;&nbsp;

        <router-link to="/reacti">注册</router-link>
      </div>
    </div>
  </div>
</template>

<script>
import { reactive } from "vue";
import Captch from "../../components/Captcha.vue";
export default {
  name: "login",
  components: { Captch },
  setup() {
    let { oncack, obj } = fu();

    return { oncack, obj };
  },
};
//獲取滑動子組件回調過來的值
const fu = () => {
  let obj = reactive({
    nc_token: "",
    csessionid: "",
    sig: "",
  });

  function oncack(data) {
    obj.nc_token = data.nc_token;
    obj.csessionid = data.csessionid;
    obj.sig = data.sig;
  }
  return { oncack, obj };
};
</script>

<style  lang="less">
@import "./style.less";
</style>
